/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package me.yobol.lintcode.easy.rotatestring;

/**
 *
 * @author Yobol
 */
public class Main {
    
    public static void main(String[] args) {
        char[] str = {'a','b','c','d','e','f','g'};
        
        IRotateString rs = new BubbleRotateString();
        assert (new String(rs.rotateString(str,0)).equals("abcdefg"));
        assert (new String(rs.rotateString(str,1)).equals("gabcdef"));
        assert (new String(rs.rotateString(str,2)).equals("fgabcde"));
        assert (new String(rs.rotateString(str,3)).equals("efgabcd"));
        System.out.println(new String(rs.rotateString(str,3)));
        System.out.println(new String(rs.rotateString(str,10)));
    }
}
